package com.hanZhe.service.impl;

import com.hanZhe.bean.User;
import com.hanZhe.mapper.UserMapper;
import com.hanZhe.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * Created by shw on 2018-02-27.
 */
@Service
public class UserServiceImpl implements UserService{

    @Autowired
    private UserMapper userMapper;

    @Override
    public User selectUser(String username) {
        return userMapper.selectUser(username);
    }


    public void textMethod(){
        System.out.println("时间："+new Date());
    }


}
